package com.cro.prison.entity.pojo;/**
 * @author augus
 * @create 2022-11-07-15:55
 */

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @ClassName:Depart
 * @Description:TODO
 * @author Augus
 * @date 2022/11/7 15:55
 * @Version 1.0
 **/

@Data
@ToString
@TableName(value = "depart")
public class Depart implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 分类id
     */
    @TableId
    private Long id;
    /**
     * 父分类id
     */
    private Long pid;
    /**
     * 分类名称
     */
    private String name;
    /**
     * 层级
     */
    private Integer catLevel;

    private Date updateTime;

    private Date createTime;

    private boolean isValid;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @TableField(exist = false)
    private List<Depart> children;

}
